jsMotif.Template.prototype.renderJSON = function(url, params, targetElem){  
    var self = this,
        $comm = jsMotif.comm,
        jsonFetcher = (params && params.reqType === 'jsonp')? $comm.jsonp : $comm.xhttp;
    
    if(typeof(url) === 'string'){
        
        jsonFetcher.getJson(url, function(data, status){
            if(params && params.onData){
                params.onData(data, status);
            }
            self.render(data, targetElem);
        }, params);
        
    }else{
        self.render(url, targetElem);   
    }
};
